<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Company extends Model
{
    protected $table='day3_company';
    public function getCompanyData(){
        return $this->select();
    }

    public function delCompany($id){
        return $this->destroy($id);
    }

    public function updateShow($id){
        return $this->find($id);
    }

    public function updateComData($data){
        return $this->update([
            'number'=>$data['number'],
            'compny_name'=>$data['compny_name'],
            'naem'=>$data['naem'],
            'Idcard'=>$data['Idcard'],
            'type'=>$data['type'],
            'email'=>$data['email'],
            'id'=>$data['id']
        ]);
    }
}
